from xml.dom.minidom import parse
from sys import argv


def elems(node):
    return filter(lambda x: x.nodeType == x.ELEMENT_NODE, node.childNodes)

doc = parse(argv[1])

print doc.getElementsByTagName('RenderRangeMin')[0].firstChild.data,
print doc.getElementsByTagName('RenderRangeMax')[0].firstChild.data

rrs = doc.getElementsByTagName('RenderRange')[0]

for cp in elems(rrs):
    if cp.nodeName == 'ColoredPoint':
        for node in elems(cp):
            if node.nodeName == 'Color':
                for x in elems(node)[1:]:
                    print x.firstChild.data,
            elif node.nodeName == 'X':
                print node.firstChild.data,
            elif node.nodeName == 'Y':
                print node.firstChild.data


